package com.project.smarthome.common.widget.circle;

/**
 * Created 16/7/1.
 * 绘画颗粒工具类
 */
public class Dot {
    public int mAlpha;
    public int mBaseAlpha;
    public int mBaseX;
    public int mBaseY;
    public float mRadius;
    public float mVelocity;
    public double mAngle;
    public int mDistance;
    public int mBaseDistance;

    public Dot(int mBaseY, int baseX) {
        this.mBaseY = mBaseY;
        this.mBaseX = baseX;
    }

    public int getCenterX() {
        return mBaseX + (int) (mDistance * Math.cos(mAngle));
    }

    public int getCenterY() {
        return mBaseY + (int) (mDistance * Math.sin(mAngle));
    }

    public int getAlpha() {
        return mAlpha;
    }

    public void setAlpha(int mAlpha) {
        this.mAlpha = mAlpha;
    }

    public float getRadius() {
        return mRadius;
    }

    public void setRadius(float mRadius) {
        this.mRadius = mRadius;
    }

    public float getVelocity() {
        return mVelocity;
    }

    public void setVelocity(float mVelocity) {
        this.mVelocity = mVelocity;
    }

    public double getAngle() {
        return mAngle;
    }

    public void setAngle(double mAngle) {
        this.mAngle = mAngle;
    }

    public int getDistance() {
        return mDistance;
    }

    public void setDistance(int mDistance) {
        this.mDistance = mDistance;
    }

    public int getBaseY() {
        return mBaseY;
    }

    public void setBaseY(int mBaseY) {
        this.mBaseY = mBaseY;
    }

    public int getBaseX() {
        return mBaseX;
    }

    public void setBaseX(int mBaseX) {
        this.mBaseX = mBaseX;
    }

    public int getBaseAlpha() {
        return mBaseAlpha;
    }

    public void setBaseAlpha(int mBaseAlpha) {
        this.mBaseAlpha = mBaseAlpha;
    }

    public int getBaseDistance() {
        return mBaseDistance;
    }

    public void setBaseDistance(int mBaseDistance) {
        this.mBaseDistance = mBaseDistance;
    }
}
